package com.ess.project.examine.personnel.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.ess.project.examine.personnel.domain.ExaminePersonnelEntity;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;


/**
 * @Description:
 * @Date: Created in 11:48 上午 2021/3/17
 * @Author: daihui
 * @Modified By:
 */
@Repository
public interface PersonnelMapper extends BaseMapper<ExaminePersonnelEntity> {

    @Select("select count(1) from exam_personnel where exam_personnel=#{examPersonnel} limit 1")
    int checkPersonnelNameUnique(String examPersonnel);

    int deletePersonnelByIds(Long[] personnelIds);
}
